home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 1997 May / PC Plus Super CD Issue 127 (May 1997).iso / handson / handson.exe / TSTSR.INF < prev    next >
Encoding:
Text File  |  1996-08-10  |  12.9 KB  |  345 lines

  1. Sat 10-August-1996
  2.  
  3. About TSTSR in General                       (All rights reserved)
  4. ======================
  5.  
  6. This package may be used and distributed freely for NON-COMMERCIAL,
  7. NON-INSTITUTIONAL, PRIVATE purposes, provided it is not changed in
  8. any way. (Repacking with another method is ok, though.) For ANY
  9. other usage, such as use in a business enterprise or a university,
  10. contact the author for registration. Uploading to bulletin boards is
  11. encouraged. Please do not distribute any part of this package
  12. separately.
  13.  
  14. The programs are under development. Comments and contacts are
  15. solicited. If you have any comments or bug reports, please do not
  16. hesitate to use electronic mail for communication.
  17.  
  18. The author shall not be liable to the user for any direct, indirect
  19. or consequential loss arising from the use of, or inability to use,
  20. any program or file howsoever caused. No warranty is given that the
  21. programs will work under all circumstances.
  22.  
  23. Timo Salmi (email: ts@uwasa.fi WWW: http://uwasa.fi/~ts/)
  24. Professor of Accounting and Business Finance
  25. Faculty of Accounting & Industrial Management
  26. University of Vaasa
  27. P.O. BOX 700, FIN-65101 Vaasa, Finland
  28.  
  29.  
  30. Timo Salmi Terminate and Stay Resident, release 2.1 includes
  31. *    *     *             *    *                 * *
  32. the following utility-type programs:
  33.  
  34. TSTSR21         Terminate Stay Resident, T.Salmi
  35. Filename        Comment
  36. --------        --------------------------------
  37. ALARM.EXE       Resident alarm at hh:mm
  38. DISABLE.EXE     Disable any single standard key
  39. ENOUGH.EXE      Shutdown PC in so many minutes
  40. FILE_ID.DIZ     Brief characterization of TSTSR
  41. KEYCOUNT.EXE    Keystroke counter
  42. LEDS.EXE        Caps, NumLock, ScrollLock status
  43. NOBOOT.EXE      Disable Alt-Ctrl-Del warm boot
  44. NOBREAK.EXE     Disable ctrl-C and ctrl-Break
  45. NOCAPSLC.EXE    Disable the CapsLock key
  46. NUMLOCK.EXE     Force the NumLock key always on
  47. PINPOINT.EXE    Poinpoint the cursor location
  48. RESCLOC2.EXE    Resident clock w. select row/col
  49. RESCLOCK.EXE    Resident clock
  50. SHFTCAPS.EXE    Shift+CapsLock instead of CapsLc
  51. SHFTNUML.EXE    Shift+NumLock instead of NumLock
  52. SORDINO.EXE     Turn sounds off, shorter in fact
  53. TIMEDOWN.EXE    Resident countdown timer
  54. TIMEPEST.EXE    Resident elapsed time alarm
  55. TIMEUP.EXE      Resident countup timer
  56. TSPROG.INF      List of programs from Timo Salmi
  57. TSTSR.INF       Documentation (and a readme)
  58. TSTSR.NWS       News announcements about tstsr
  59. VAASA.INF       Info: Finland, Vaasa, U of Vaasa
  60. ----            ------             ------  -----
  61. 0023
  62.  
  63.  
  64. General Information on TSR Programs
  65. ===================================
  66.  
  67. The so-called Terminated and Stay Resident programs which, as their
  68. name indicates stay resident in the PC's memory, have some very
  69. useful applications. You may have heard or used pop-up programs
  70. which are advanced TSRs. But there are also simple TSR programs
  71. which can be very handy, and here is a collection of them.
  72.  
  73. Remember, however, that the TSRs programs reserve memory to
  74. themselves from your other applications. (In MS-DOS 5.0, or later,
  75. you can circumvent this problem to a degree because you can load
  76. TSRs into the upper memory with the MS-DOS loadhigh command). Note
  77. that what I say here and below concerns TSR programs in general. Not
  78. just these TSR programs.
  79.  
  80. Another general problem with TSR programs is that once you have
  81. installed a TSR you usually have to reboot your PC to remove the TSR
  82. from memory. There are ways around this, though, like using the
  83. mark/release programs from TurboPower Software. I have no connection
  84. to TurboPower Software but I can recommend their utilities. For mark
  85. and release get ftp://garbo.uwasa.fi/pc/memutil/tsrcom35.zip (or
  86. whatever is the current version number). However, you can use my TSR
  87. programs quite well without TurboPower Software utilities, but they
  88. give added flexibility.
  89.  
  90.  
  91. Program Descriptions
  92. ====================
  93.  
  94. ALARM.EXE  Resident alarm at hh:mm
  95. =========
  96.  
  97. Usage: ALARM [hh:mm] [AlarmCycles (default=150)]
  98.  
  99. Sounds and displays in text mode an alarm at hh:mm. Just like the
  100. other tsr programs in this collection the alarm program is allows to
  101. install it only once. You can't have multiple copies running.
  102.  
  103.  
  104. DISABLE.EXE  Disable any single standard key
  105. ===========
  106.  
  107. Usage: DISABLE keyScanCode ShiftStatus
  108.  
  109. For example to disable Ctrl-X try DISABLE 2D 04
  110.  
  111. To get the key scancodes of your own keyboard you might have to use
  112. "SCANCODE 2" from ftp://garbo.uwasa.fi/pc/ts/tsbase12.zip or
  113. whichever is the current version number. To get the shift status use
  114. "SCANCODE 3" second part. Be prepared that some trial and error
  115. experimenting may be needed.
  116.  
  117. Here are some typical, expected key scancode values:
  118. Key Scan  Key Scan  Key Scan  Key Scan  Key Scan  Key Scan  Key Scan
  119.  a   1E    b   30    c   2E    d   20    e   12    f   21    g   22
  120.  h   23    i   17    j   24    k   25    l   26    m   32    n   31
  121.  o   18    p   19    q   10    r   13    s   1F    t   14    u   16
  122.  v   2F    w   11    x   2D    y   15    z   2C    1   02    2   03
  123.  3   04    4   05    5   06    6   07    7   08    8   09    9   0A
  124.  0   0B    F1  3B    F2  3C    F3  3D    F4  3E    F5  3F    F6  40
  125.  F7  41    F8  42    F9  43    F10 44
  126.  
  127. right Shift 01    left Shift 02    CTRL 04    left ALT 08
  128.  
  129. You can, of course, disable a straight ascii key, even if that does
  130. not make much sense.  For example to disable the key q (and
  131. consequently Q, Ctrl-Q, and Alt-Q) use DISABLE 10 00
  132.  
  133. If you wish to disable more than one key, you have to use a separate
  134. program call for each key. Also note that there is no sense in
  135. disabling the same key twice. It just consumes precious memory.
  136. Loading to upper memory with loadhigh saves conventional memory,
  137. which always seems to be in short supply.
  138.  
  139. A tip: Many programs use Alt-X for quick exiting. You might wish to
  140. avoid exiting accidentally.  You can prevent this by putting your
  141. program call into a batch:
  142.  mark                         (from TurboPower's TSRCOM*.ZIP)
  143.  DISABLE 2D 08                (the parameters' case does not matter)
  144.  YourProgramCall %1 %2 %3 %4 %5
  145.  release
  146.  
  147.  
  148. ENOUGH.EXE  Shutdown PC in so many minutes
  149. ==========
  150.  
  151. Usage: ENOUGH [MinutesToAllow]
  152.  
  153. A program to limit the time your PC can be used at one go before it
  154. locks itself displaying a blinking "enough" message in the center of
  155. the screen. For example if you wish to allow only a certain spell
  156. for your kids to play games on you PC, install ENOUGH before you let
  157. them at it. Or you may wish to get a grip on your own computer
  158. addiction with an aid like this :-). Whether tricks like this really
  159. work is not basically a programming but a behavioral question which
  160. you'll have to sort out yourself. :-). Also be forewarned that
  161. ENOUGH is a self-induced computer lock-up with all the same
  162. potential ill-effects on the possibly open files as any genuine
  163. crash.
  164.  
  165.  
  166. KEYCOUNT.EXE  Keystroke counter
  167. ============
  168.  
  169. Puts a keystroke counter at the upper right corner of the screen. It
  170. is a natty measure of your computer addiction.
  171.  
  172. To make the counter as compatible as possible for the various
  173. keyboards some compromises have been made. The AltGr key does not
  174. count, the PrintScreen does not count, entering ascii codes through
  175. alt + the numeric pad counts as one key only, and the foreign
  176. keyboards may have some other slight discrepancies.
  177.  
  178.  
  179. LEDS.EXE  Caps, NumLock, ScrollLock status
  180. ========
  181.  
  182. Usage: LEDS c n s
  183.             │ │ └─ display Scroll lock status
  184.             │ └─ display Numlock status
  185.             └─ display Capslock status
  186.  
  187. LEDS.EXE indicates the caps status on laptops without leds or if
  188. your desktops PC's leds are broken. For example I have LEDS c in the
  189. autoexec.bat file of my old Zenith Z-181 portable to show whether or
  190. not I have the CapsLock on.
  191.  
  192.  
  193. NOBOOT.EXE  Disable Alt-Ctrl-Del warm boot
  194. ==========
  195.  
  196. As you know you can usually reboot (the so-called warm boot) your PC
  197. by pressing the key combination Alt-Ctrl-Del.  If you wish to
  198. disable this possibility, run NOBOOT.EXE once.
  199.  
  200. Disabling the Alt-Ctrl-Del can be occasionally useful. For example I
  201. have a batch for changing my PC configuration by copying alternative
  202. autoexec.bat and config.sys files to replace the current ones. After
  203. the batch is done with the copying, I just hit Alt-Ctrl-Del.  Now,
  204. if I would accidentally do that too early while the copying still
  205. takes place, that might cause problems. So it is advisable to
  206. disable the warmboot for the duration of running the configuration
  207. batch.  (If you are interested in the configuration batch, you can
  208. find it in ftp://garbo.uwasa.fi/pc/ts/tsbat49.zip or whichever is
  209. the current version number.)
  210.  
  211.  
  212. NOBREAK.EXE  Disable ctrl-C and ctrl-Break
  213. ===========
  214.  
  215. Like the description indicates. Disables breaking.
  216.  
  217.  
  218. NOCAPSLC.EXE  Disable the CapsLock key
  219. ============
  220.  
  221. Are you aggravated by accidentally hitting the CapsLock key and the
  222. consequent turning on of the CapsLock? I've written a new Terminate
  223. and Stay Resident (TSR) program NOCAPSLC.EXE which monitors the
  224. CapsLock status and forces it off if it is on. This is one of the
  225. programs that arises from my own usage needs. I decided that I'd
  226. prefer to have the CapsLock key usually disabled because I hit it by
  227. accident rather often. It is located between the Shift and the Tab
  228. keys. I use both quite frequently.
  229.  
  230. I have installed this program on all the PCs that I use constantly
  231. myself. I have loaded it into the upper memory, like all the TSRs I
  232. employ, to preserve memory. On MS-DOS 5.0, or later, I naturally use
  233. loadhigh for that. I have in my autoexec.bat
  234.   mark nocapslc
  235.   loadhigh nocapslc
  236.  
  237.  
  238. NUMLOCK.EXE  Force the NumLock key always on
  239. ===========
  240.  
  241. This program keeps the NumLock key in the on position whatever you
  242. do. Note that if you wish to just assure that it is on (on off) at
  243. boot-time, that is a different task, which dies not require a TSR.
  244. You can use CAPS.EXE from ftp://garbo.uwasa.fi/pc/ts/tsutld22.zip
  245. (or whichever is the current version number) collection for the
  246. latter purpose by putting it into your autoexec.bat.
  247.  
  248.  
  249. PINPOINT.EXE  Poinpoint the cursor location
  250. ============
  251.  
  252. Displays a flashing  to pinpoint where the cursor currently is when
  253. you press alt-G.
  254.  
  255.  
  256. RESCLOCK.EXE  Resident clock
  257. ============
  258.  
  259. Puts a (24-hour) clock ticking in the right-hand upper corner of
  260. your screen.
  261.  
  262.  
  263. RESCLOC2.EXE  Resident clock w. select row/col
  264. ============
  265.  
  266. As RESCLOCK.EXE but with row and column given by the user.
  267.  
  268. Usage: RESCLOC2 row column
  269.  
  270.  
  271. SHFTCAPS.EXE  Shift+CapsLock instead of CapsLc
  272. ============
  273.  
  274. You have probably have been sometimes annoyed by accidentally
  275. hitting the CapsLock key. SHFTCAPS.EXE substitutes Shift+CapsLock
  276. for CapsLock. The idea that the substituting combination is not
  277. pressed accidentally as easily as the original key. The program uses
  278. the typewriter logic. That is to lock that capital letters on you'll
  279. need to press Shft+CapsLock, but to release the caps it will be
  280. sufficient to press CapsLock alone.
  281.  
  282. Note that SHFTCAPS.EXE will initially turn CapsLock off, if you
  283. happen to have it on when installing the program.
  284.  
  285. The program requires an enhanced keyboard, that is at least an AT
  286. PC.
  287.  
  288.  
  289. SHFTNUML.EXE  Shift+NumLock instead of NumLock
  290. ============
  291.  
  292. You have probably have been sometimes annoyed by accidentally
  293. hitting the NumLock key. SHFTNUML.EXE substitutes Shift+NumLock for
  294. NumLock. The idea that the substituting combination is not pressed
  295. accidentally as easily as the original key. The program uses the
  296. typewriter logic. That is to turn off the numeric pad you'll have to
  297. press Shft+NumLock, but to return it on, it is sufficient to press
  298. NumLock alone.
  299.  
  300. Note that SHFTNUML.EXE will initially turn the NumLock on, if you
  301. happen to have it off when installing the program.
  302.  
  303. The program requires an enhanced keyboard, that is at least an AT
  304. PC.
  305.  
  306.  
  307. SORDINO.EXE  Turn sounds off, shorter in fact
  308. ===========
  309.  
  310. This program is my failed attempt at silencing the PC's speaker. It
  311. seems that with the modern fast processors the tick frequency (1/18
  312. seconds) is simply not enough for such a TSR. The same affliction
  313. besets all the other silencer programs I have come across. Obviously
  314. the only solution is using a capacitor by brandishing a soldering
  315. iron.
  316.  
  317.  
  318. TIMEDOWN.EXE  Resident countdown timer
  319. ============
  320.  
  321. Usage TIMEDOWN [MinutesToRunDown]
  322.  
  323. The location of TIMEDOWN leaves eight positions to the end of the
  324. screen, so that you can have RESCLOCK and TIMEDOWN ticking away at
  325. the same time.
  326.  
  327.  
  328. TIMEPEST.EXE  Resident elapsed time alarm
  329. ============
  330.  
  331. Usage TIMEPEST [MinutesBetweenBeeps] [/d]
  332.                               Display ─┘
  333.  
  334. For example, if you are an inveterate BBS user who wishes to keep
  335. one's connect times within some kind of limits, you may find this
  336. useful. I have truly seen requests for this kind of utilities for
  337. the very problem.
  338.  
  339.  
  340. TIMEUP.EXE  Resident countup timer
  341. ==========
  342.  
  343. Puts a time counter ticking in the right-hand upper corner of your
  344. screen starting from 00:00:00.
  345.